<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>css样式列表</title>
		<style type="text/css">
		.bgbody{
			background-image: url(imgs/bg1.jpg);
			background-attachment: fixed;
			background-position: 50% 100%;
			background-repeat: no-repeat;
		}
		
		ul{
			
		}
			li{
				float: left;
				list-style-type: none;
				text-align: center;
				background-color:#F0C869;
				/*外边距*/
				margin-left: 5px;
				/*内边距*/
				padding-left: 10px;
			}
			a{
				margin-left: 5px;
				padding-left: 10px;
				float: left;
				width: 150px;
				text-decoration: none;
				color: ;
				border-right: 1px solid azure;
			}
			/*a:link{
				
			}*/
			a:hover{
				color: chartreuse;
			}
			a:active{
				color: #7FFF00;
			}
			/*a:visited{
				color: aqua;
			}*/
			.pstyle1{
				margin: -5px 3px 10px;
				border:solid;
				
			}
			.pstyle2{
				margin: 5px 3px 10px;
				border:solid;
				padding: -15px 5px 3px;
			}
			.contentdiv{
				width: 600px;
			}
			.contentdiv2{
				margin: 5px 3px 3px 4px;
				width: 600px;
			}
			
			.subDiv{
				width: 45%;
				float: left;
				margin: 10px 5px 6px 8px;
			}
			.subDiv2{
				width: 45%;
				float: left;
				margin: 20px 5px 6px 8px;
			}
			.subDiv3{
				width: 45%;
				height: 30px;
				float: left;
				margin: 10px 5px 6px 8px;
				
			}
			.subP{
				float: left;
				border: dashed;
				padding: 4px;
				width: 60px;
				margin: 10px*0px;
				background-color: #7FFF00;
				border-left: 0;
				
			}
		</style>
	</head>
	<body class="bgbody">
		<p>css设置网页导航栏样式：</p>

		<ul>
			<li><a href="#">首页</a></li>
			<li><a href="#">用户管理</a></li>
			<li><a href="#">购物车</a></li>
			<li><a href="#">订单</a></li>
			<li><a href="#">退出</a></li>
		</ul>
		<br>
		<div class="contentdiv">
		<div class="subDiv">
		<p class="pstyle1">你好</p>
		
		</div>
		<div class="subDiv">
			<p class="pstyle2">大家好</p>
		</div>
		</div>
		
		<div class="contentdiv2">
		<div class="subDiv2">
		<p class="pstyle1">吃饭了</p>
		<p class="pstyle2">没有呢</p>
		</div>
		<div class="subDiv3">
			<p class="pstyle2">吃过了</p>
		</div>
		</div>
		<br><br><br><br><br><br><br><br>
		<p class="subP">吃过了</p>
		<p class="subP">吃过了</p>
	</body>
</html>
